home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 40
/
Vol 40.iso
/
games
/
water_ba.swf
/
scripts
/
DefineSprite_78
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-03-20
|
920b
|
51 lines
textz.onEnterFrame = function()
{
if(!this.init)
{
this.originy = this._y;
this.init = true;
}
if(this._y < 10 and this._y > -1220)
{
switch(this.dir)
{
case 1:
this._y -= 2;
break;
case 2:
if(this._y < 0)
{
this._y += 2;
}
}
}
else
{
this._y = this.originy;
}
};
arrowdown.onRollOver = function()
{
_root.cursorz.gotoAndStop(3);
textz.dir = 1;
this.gotoAndStop(2);
};
arrowdown.onRollOut = function()
{
this.gotoAndStop(1);
_root.cursorz.gotoAndStop(1);
textz.dir = 3;
};
arrowup.onRollOver = function()
{
this.gotoAndStop(2);
_root.cursorz.gotoAndStop(3);
textz.dir = 2;
};
arrowup.onRollOut = function()
{
this.gotoAndStop(1);
_root.cursorz.gotoAndStop(1);
textz.dir = 3;
};